package controllers

import "github.com/astaxie/beego"

/**
函数库（没搞好）
*/
type HelperController struct {
	beego.Controller
}

type Helper interface {
}

// @Title reJson
func (this *HelperController) reJson(msg string, data interface{}) {
	//this.Data["json"] = msg
	this.Data["json"] = map[string]interface{}{"success": 0, "message": msg}
	this.ServeJSON()
}
